package com.cqjtu.graduation.util;

import com.cqjtu.graduation.dao.OrderDAO;
import org.springframework.beans.factory.annotation.Autowired;

public class OrderIdGenerate {
    @Autowired
    private OrderDAO orderDAO;
    public  Integer orderIdGenerate(){
        if(orderDAO.getMaxOrderId() == null){
            return 1;
        }
        return orderDAO.getMaxOrderId()+1;
    }
}
